package com.xiukelai.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xiukelai.springboot.base.BaseModel;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 存储商品信息：系统后台维护
 * </p>
 *
 * @author hutao
 * @since 2019-07-26
 */
@TableName(value ="p_sys_product")
public class SysProduct extends BaseModel {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long productTypeId;

    private String name;

    private BigDecimal marketPrice;

    private BigDecimal topPrice;

    private BigDecimal limitPrice;

    private Integer orderNum;

    private String iconUrl;

    private Integer conponType;

    private Date createTime;

    private Date updateTime;

    private Integer delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(Long productTypeId) {
        this.productTypeId = productTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getTopPrice() {
        return topPrice;
    }

    public void setTopPrice(BigDecimal topPrice) {
        this.topPrice = topPrice;
    }

    public BigDecimal getLimitPrice() {
        return limitPrice;
    }

    public void setLimitPrice(BigDecimal limitPrice) {
        this.limitPrice = limitPrice;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public Integer getConponType() {
        return conponType;
    }

    public void setConponType(Integer conponType) {
        this.conponType = conponType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "SysProduct{" +
                "id=" + id +
                ", productTypeId=" + productTypeId +
                ", name='" + name + '\'' +
                ", marketPrice=" + marketPrice +
                ", topPrice=" + topPrice +
                ", limitPrice=" + limitPrice +
                ", orderNum=" + orderNum +
                ", iconUrl='" + iconUrl + '\'' +
                ", conponType=" + conponType +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", delFlag=" + delFlag +
                '}';
    }
}
